<!DOCTYPE html>
<style>
.treeView{
	height: 250px;
	overflow-y: auto;
	background-color:white;
	
}
.colorContainer .fa{
	padding: 10px;
}


</style>


<div ng-controller="addProductCtrl">
	<div class="well">
		<div class="titleContainer">
			<div class="leftTitle">仓库产品&nbsp;&nbsp;—>&nbsp;&nbsp;新增产品</div>
		</div>
		
		<div class="formContainer">
			<div class="form-horizontal">
	            <div class="form-group">
	                <label class="col-sm-2 control-label textCenter">产品展示图<text class="required">*</text></label>
	                <div class="col-sm-10">
	                	<div class="col-sm-12 limitTips">（【尺寸要求】高度:750px &nbsp;&nbsp; 宽度:750px &nbsp;&nbsp; 大小:80Kb以内  &nbsp;&nbsp;）</div>
	                	<div class="col-sm-2">
		                	<div class="logoContainer">
			                	<div class="imgBackground1">
			                		<span class="glyphicon glyphicon-plus"></span>
			                	</div>
			                	<div class="imgBackground2" id="upload1_img"></div>
			                	<input type="file" name="file" id="upload1"/>
			                	<input type="hidden" id="upload1_url"/>
			                	<input type="hidden" id="upload1_image_id"/>
		                	</div>
		                </div>	
		                <div class="col-sm-2">
		                	<div class="logoContainer">
			                	<div class="imgBackground1">
			                		<span class="glyphicon glyphicon-plus"></span>
			                	</div>
			                	<div class="imgBackground2" id="upload2_img"></div>
			                	<input type="file" name="file" id="upload2"/>
			                	<input type="hidden" id="upload2_url"/>
			                	<input type="hidden" id="upload2_image_id"/>
		                	</div>
		                </div>
		                <div class="col-sm-2">
		                	<div class="logoContainer">
			                	<div class="imgBackground1">
			                		<span class="glyphicon glyphicon-plus"></span>
			                	</div>
			                	<div class="imgBackground2" id="upload3_img"></div>
			                	<input type="file" name="file" id="upload3"/>
			                	<input type="hidden" id="upload3_url"/>
			                	<input type="hidden" id="upload3_image_id"/>
		                	</div>
		                </div>
		                <div class="col-sm-2">
		                	<div class="logoContainer">
			                	<div class="imgBackground1">
			                		<span class="glyphicon glyphicon-plus"></span>
			                	</div>
			                	<div class="imgBackground2" id="upload4_img"></div>
			                	<input type="file" name="file" id="upload4"/>
			                	<input type="hidden" id="upload4_url"/>
			                	<input type="hidden" id="upload4_image_id"/>
		                	</div>
		                </div>
		                <div class="col-sm-2">
		                	<div class="logoContainer">
			                	<div class="imgBackground1">
			                		<span class="glyphicon glyphicon-plus"></span>
			                	</div>
			                	<div class="imgBackground2" id="upload5_img"></div>
			                	<input type="file" name="file" id="upload5"/>
			                	<input type="hidden" id="upload5_url"/>
			                	<input type="hidden" id="upload5_image_id"/>
		                	</div>
		                </div>   
	                </div>
	            </div>
	        </div>	
	        <div class="form-horizontal">
	            <div class="form-group">
	                <label class="col-sm-2 control-label textCenter">基本信息</label>
	                <div class="col-sm-10">
				        <div class="form-horizontal">
				            <div class="form-group">
				                <label class="col-sm-1 control-label">产品标题<text class="required">*</text></label>
				                <div class="col-sm-9">
				                	<input type="text" class="form-control" ng-model="form.product_title"/>
				                </div>
				            </div>
				        </div>
				        <div class="form-horizontal">
				            <div class="form-group">
				                <label class="col-sm-1 control-label">产品排序</label>
				                <div class="col-sm-4">
				                	<input type="number" class="form-control" ng-model="form.product_sort"/>
				                </div>
				                <label class="col-sm-1 control-label">计价单位</label>
				                <div class="col-sm-4">
				                	<input type="text" id="priceUnit"/>
				                </div>
				            </div>
				        </div>
				        <div class="form-horizontal">
				            <div class="form-group">
				                <label class="col-sm-1 control-label">是否新品</label>
				                <div class="col-sm-4">
				                	<input type="text" id="isNew"/>
				                </div>
				                <div id="upTime_show" style="display: none;">
					                <label class="col-sm-1 control-label">设置上新时间</label>
					                <div class="col-sm-4">
					                	<input type="text" id="startTime"/>
					                </div>
				                </div>
				            </div>
				        </div> 
	                </div>
	            </div>
	        </div>
	        <div class="form-horizontal">
	            <div class="form-group">
	                <label class="col-sm-2 control-label textCenter">所属分类</label>
	                <div class="col-sm-9" style="border:1px solid gray;height: 250px;overflow-y: auto;">
	                	<ul id="ztree" class="ztree" style="overflow-x:hidden;background-color:white;height: 240px;"></ul>
	                </div>
	            </div>
	        </div>
	        <div class="form-horizontal">
	            <div class="form-group">
	                <label class="col-sm-2 control-label textCenter">颜色分类<text class="required">*</text></label>
	                <div class="col-sm-9 colorContainer" id="colorContainer">
	                
				     <!--    <div class="form-horizontal">
				            <div class="form-group">
				                <div class="col-sm-9" id="colorIndex_1">
			                		<div class="form-horizontal">
			                			<div class="form-group">
			                				<div class="col-sm-12">
			                					<input type="text" class="form-control" placeholder="颜色名称"/>
			                				</div>
			                			</div>
			                		</div>
			                		<div class="form-horizontal">
			                			<div class="form-group">
			                				<div class="col-sm-3">
			                					<i class="fa fa-plus width20" ng-click="addColorChildren(1)"></i>
			                					<input type="text" class="form-control width80" placeholder="添加规格"/>
			                				</div>
			                				<div class="col-sm-3">
			                					<input type="text" class="form-control" placeholder="添加型号"/>
			                				</div>
			                				
			                				<div class="col-sm-3">
				                				<div class="width90">
				                					<input type="number" class="form-control" placeholder="添加价格"/>
				                				</div>
				                				<div class="width10 control-label">元</div>
			                				</div>
			                				<div class="col-sm-3">
				                				<div class="width90">
				                					<input type="number" class="form-control" placeholder="添加库存数量"/>
				                				</div>
				                				<div class="width10 control-label">元</div>
			                				</div>
			                			</div>
			                		</div>
			                		<div class="form-horizontal">
			                			<div class="form-group">
			                				<div class="col-sm-3">
			                					<i class="fa fa-minus width20" ng-click="addColorChildren(1)"></i>
			                					<input type="text" class="form-control width80" placeholder="添加规格"/>
			                				</div>
			                				<div class="col-sm-3">
			                					<input type="text" class="form-control" placeholder="添加型号"/>
			                				</div>
			                				
			                				<div class="col-sm-3">
				                				<div class="width90">
				                					<input type="number" class="form-control" placeholder="添加价格"/>
				                				</div>
				                				<div class="width10 control-label">元</div>
			                				</div>
			                				<div class="col-sm-3">
				                				<div class="width90">
				                					<input type="number" class="form-control" placeholder="添加库存数量"/>
				                				</div>
				                				<div class="width10 control-label">元</div>
			                				</div>
			                			</div>
			                		</div>
				                </div>
				                <div class="col-sm-2">
				                	<div class="logoContainer2">
					                	<div class="imgBackground1">
					                		<span class="glyphicon glyphicon-plus"></span>
					                	</div>
					                	<div class="imgBackground2" id="color1_img"></div>
					                	<input type="file" name="file" id="color1"/>
					                	<input type="hidden" id="color1_url"/>
				                	</div>				                
				                </div>
				                <div class="col-sm-1">
				                	<button class="k-button k-state-default" ng-click="addColor(1)">添加</button>
				                </div>
				            </div>
				        </div> -->	 
				                       
	                
	                
	                	
	                </div>
	            </div>
	        </div>


	
	        <div class="form-horizontal">
	            <div class="form-group">
	                <label class="col-sm-2 control-label textCenter">产品详情图</label>
	                <div class="col-sm-9">
	                	<!-- 百度图文编辑器 -->
						<textarea id="editor" style="width:100%;"></textarea>
	                </div>
	            </div>
	        </div>     
	        
	        
	      
	        
	        <button class="k-button k-state-default centerButton" ng-show="submit_show" ng-click="formSubmit()">确&nbsp;&nbsp;定</button>

	    </div>	
	</div>
</div>



<div></div>